feat: UniversalResolver v3 support - #3848
Conversation
🦋 Changeset detectedLatest commit: d6b88f4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
There might also be an issue with defaulting to eth mainnet's coinType if no coinType is provided — this 'eth mainnet as default' is explicitly deprecated in ENSIP-19 https://docs.ens.domains/ensip/19/#deprecating-mainnet-as-default which tells me that the api surface for reverse resolution requires a |
that’s correct, but we’re also trying to get the latest universal resolver out to as many consumers as possible to allow for a smooth transition to ENSv2. requiring |
This PR uses ENSIP-23 for a stable
UniversalResolverAPI, which is now the canonical entrypoint to ENS. The API, when used with the UniversalResolver proxy (0xeeeeeeee14d718c2b47d9923deab1335e144eeee) will allow clients to migrate automatically to ENSv2 on launch. For reverse resolution, the new API also enables ENSIP-19's chain-specific reverse resolution process by providing a coinType.Changes:
evmChainIdToCoinTypehelper funcchainIdandcoinTypeparam togetEnsName()for L2 reverse lookupschainIdparam togetEnsAddress()for parityUniversalResolvererror handlingensRegistryon mainnet/holesky/sepoliagetEnsNamenow uses the local batch gateway by default